<?php $this->_extends('_layouts/default_layout'); ?>
<?php $this->_block('title');?>个人页面<?php $this->_endblock(); ?>
<?php $this->_block('contents'); ?>
<div class="text-body">
	<h3 style="float:left; margin:15px 0px 16px 10px;">我关注的证券：</h3>
	<div class="ui-corner-all" style="float:right; padding:3px 5px; margin: 10px; border: #949AAA 1px solid; background-color:#949AAA;">
		<a href="<?=url("people/user","username/{$username}") ?>" style="color:white; margin-top: 20px;"> 别人眼中的我 »</a>
    </div>
	<?php if(isset($secs) && count($secs) > 0): foreach($secs as $sec):?>
	
		<div class="press-entity">
			<span class="name"><a href="<?=url("sec/p", "id/{$sec['id']}") ?>" ><?=h($sec['name']) ?> (<?= h($sec['code']) ?>)</a></span><br>
			<div class="description"><?=$sec['follow_cnt'] ?>人关注；<?=$sec['press_cnt'] ?>条小新闻；<?=$sec['view_cnt'] ?>个评论					<a href="#" class="signboard ui-corner-all j-stock-unfavor" style=" font-size: 13px; opacity: 0.1">*取消关注</a>
			<img class="follow-ajax-loader" src="/img/ajax-loader.gif" style="display: none;"><label style="color: red;" class="follow-publish-err"></label><br>
			<input name="id" value="<?=$sec['id'] ?>" type="hidden"></div>
		</div>
		
	<?php endforeach; else:?>
		<div class="press-entity ui-corner-all" style="background-color: #eee; text-align: center;"><p style=" font-size: 14px;">您还没有关注任何证券。点击证券链接旁边的<span style="font-weight: bold;">“*关注”</span>，证券就会显示在这里</div>
	<?php endif;?>
	<!--<div style="float:left; margin-left:20px; clear:both;"><a href="">我关注的所有证券(200个)&gt;&gt;</a></div>

	-->
	<div class="clear"></div>
	<br />
	<h3 style="float:left; margin:0px 0px 15px 10px;">我报道的小新闻：</h3>
	
	<?php if(isset($ps) && count($ps) > 0): ?>
			<?php foreach($ps as $p): ?>
				<div class="press-entity" style="margin-left: 30px;"><a href="<?=url("press/p", "id/{$p['id']}") ?>">
					<?=$p['press'] ?>
				</a></div>
			<?php endforeach;?>
	<?php else:?>
		<div class="press-entity ui-corner-all" style="background-color: #eee; margin-bottom: 20px; text-align: center"><p style="font-size: 14px;">您还没有报道过任何小新闻，点击“新闻”页面右边的“报道小新闻”可以报道你关心的新闻</div>
	<?php endif;?>
</div>
<?php $this->_endblock(); ?>
